<template>
  <div class="top">
    <div class="top__bgcolor"></div>
    <div class="top__header">
      <div class="top__header__back iconfont" @click="handleBackToShop">
        &#xe606;
      </div>
      确认订单
    </div>
    <div class="top__receiver">
      <div class="top__receiver__enter iconfont">&#xe617;</div>
      <div class="top__receiver__title">收货地址</div>
      <div class="top__receiver__address">北京理工大学国防科技园2号楼10层</div>
      <div class="top__receiver__info">
        <span class="top__receiver__info__name">瑶妹（先生）</span>
        <span class="top__receiver__info__phone">13369859209</span>
      </div>
    </div>
  </div>
</template>
<script>
import { useRouter } from "vue-router";
export default {
  name: "Top",
  setup() {
    const router = useRouter();
    const handleBackToShop = () => {
      router.back();
    };
    return { handleBackToShop };
  },
};
</script>
<style lang="scss" scoped>
.top {
  height: 1.96rem;
  background-size: 100% 1.59rem;
  background-image: linear-gradient(0deg, rgba(0, 145, 255, 0) 4%, #0091ff 50%);
  background-repeat: no-repeat;
  &__header {
    position: relative;
    padding: 0.2rem 0;
    line-height: 0.24rem;
    font-size: 0.16rem;
    text-align: center;
    color: #fff;
    &__back {
      position: absolute;
      left: 0.18rem;
      font-size: 0.2rem;
    }
  }
  &__receiver {
    box-sizing: border-box;
    position: relative;
    height: 1.11rem;
    margin: 0 0.18rem;
    padding: 0.18rem;
    background-color: #fff;
    border-radius: 0.04rem;
    &__enter {
      position: absolute;
      right: 0.18rem;
      top: 0.6rem;
    }
    &__title {
      margin-bottom: 0.18rem;
      font-size: 0.16rem;
      font-weight: 700;
    }
    &__address {
      font-size: 0.14rem;
      margin-bottom: 0.14rem;
    }
    &__info {
      color: #666;
    }
  }
}
</style>
